package com.think.teaching.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.think.teaching.model.Article;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 文章 服务类
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
@Service
public interface ArticleService extends IService<Article> {
	Article AddArticle(Article Article) throws Throwable;

	Article UpdateArticle(Article Article) throws Throwable;

	Article GetArticle(Integer id,Boolean withState);

	List<Article> ListArticleSearch(String key ,Boolean withoutBan);

	Article SetArticleState(Integer id, Integer state);
}
